﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ChangePassWord.aspx.cs" Inherits="ChangePassWord" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="js/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery.validationEngine.js" type="text/javascript"></script>
    <script src="js/jquery.validationEngine-en.js" type="text/javascript"></script>
    <script  type="text/javascript">
         $(document).ready(function () {
             jQuery(".form").validationEngine({ scroll: false, focusFirstField: false });
         });

         function customValidate(field, rules, i, options) {
             var pattern = new RegExp(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/);
             var match = pattern.exec(field.val());
             if (field.val() == "") {
                 return true;
             }
             else if (match == null) {
                 return options.allrules.email.alertText;
             }
         }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

 <div id="content" class="clearfix">
        <div class="createuser clearfix">
            <div class="bg01">
                <div class="bg02">
                    <%--<div class="bg03 clearfix">--%>
                    <div class="bg03 clearfix" style="height:410px; padding:20px;">
                        <form method="post" action="#">
                        <div style="width:50%;margin:0 auto">
                        <div style="clear:both"></div>
                        <div class="accountdiv">
                            <div class="text-field">
                            New Password:
                            </div>
                            <div class="form-filed-account">
                                <asp:TextBox CssClass="validate[required,minSize[5],maxSize[50]] field-textbox1 " ID="new_password" runat="server" type="password" ></asp:TextBox>
                            </div>
                        </div>
                        <div style="clear:both"></div>
                        <div class="accountdiv">
                            <div class="text-field">
                            Confirm New Password:
                            </div>
                            <div class="form-filed-account">
                                <asp:TextBox  CssClass="validate[required,equals[MainContent_new_password]] field-textbox1"  ID="confirm_password" runat="server" type="password"
                                ></asp:TextBox>
                            </div>
                        </div>
                        <div style="clear:both"></div>
                        <div class="accountdiv" style="text-align:center;">
                            <asp:Button ID="btnChangePass" runat="server" CssClass="button-form" OnClientClick="changepass();"  Text="Submit"
                                onclick="btnChangePass_Click" />
                        </div>
                        </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

